package com.liuhung.ash.security.service;

import java.util.List;

import org.apache.log4j.Logger;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.liuhung.base.page.BasePage;
import com.liuhung.base.service.BaseService;
import com.liuhung.ash.security.dao.ModelDao;
import com.liuhung.ash.security.entity.Model;

/**
 *	@ClassName: ModelService 
 *  @Description: <b>模型服务层</b>
 *  @author 刘  鸿 
 *  @date 2015-9-29 0:07:40
 */ 
@Service("modelService")
@Transactional
public class ModelService extends BaseService<Model> {
	private final static Logger log= Logger.getLogger(ModelService.class);
	
	@Autowired
    private ModelDao<Model> dao;
	public ModelDao<Model> getDao() {
		return dao;
	}
	public List<Model> queryByUsers(Object id)
	{
		return dao.queryByUsers(id);
	}
	public  List<Model> queryRoot(){
		return dao.queryRoot();
	}

}
